public class Simulator {
    public void playSound(Animal animal) {
        System.out.println("Simulator: 现在播放" + animal.getAnimalName()+"类的叫声");
        animal.cry();
    }
}
